﻿#ifndef HDATAQUERY_H
#define HDATAQUERY_H

#include <QObject>

class HDataQuery : public QObject
{
    Q_OBJECT

public:
    HDataQuery(QObject *parent = nullptr);
    Q_INVOKABLE QByteArray getQua(const QString &name);
    Q_INVOKABLE int dbFields();
    Q_INVOKABLE QStringList dbFieldNames();
    Q_INVOKABLE QByteArray getScore(const QString &name);
    Q_INVOKABLE QByteArray getPlants();

    Q_INVOKABLE int getPlantCountByInverter(const QString &name);
    Q_INVOKABLE float getScoreByInverter(const QString &name);
};

#endif // HDATAQUERY_H
